<template>
  <div class="top_nav_content">
    <span @click="goBack"><van-icon name="arrow-left" size="26" /></span>
    <span class="title">{{ title }}</span>
    <span class="pos"></span>
  </div>
</template>
<script setup>
import { ref, defineProps } from "vue";
import { useRouter, useRoute } from "vue-router";

const router = useRouter();
const props = defineProps({
  title: {
    type: String,
    default: "",
  },
});
const goBack = () => {
  router.back();
};
</script>
<style lang="scss" scoped>
.top_nav_content {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 100;
  background: #ffffff;
  .title {
    font-size: 18px;
    font-weight: bold;
  }
}
</style>
